package com.hdax.dm.entity.item;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "dm_item_comment")
public class DmItemComment implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private Long itemId;
    private Long score;
    private Long userId;
    private String content;

    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;


    public void setComment(String content) {
        this.content = content;
    }
}
